package com.free.semantic.infrastruct.repository;

import com.free.semantic.model.conceptmodel.Model;
import com.free.semantic.model.conceptmodel.ModelMarket;

import java.util.List;

/**
 * 模型市场Repository接口
 */
public interface ModelMarketRepository {
    ModelMarket findById(Long id);
    List<ModelMarket> findAll();
    Long save(ModelMarket modelMarket);
    void update(ModelMarket modelMarket);
    void deleteById(Long id);
    
    // 模型与市场关联的操作
    void addModelToMarket(Long marketId, Long modelId);
    void removeModelFromMarket(Long marketId, Long modelId);
    List<Model> findModelsByMarketId(Long marketId);
    List<ModelMarket> findMarketsByModelId(Long modelId);
} 